﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
//
using PerceptiveMCAPI;
using PerceptiveMCAPI.Types;
//

namespace PerceptiveMCAPI_Test
{
   public partial class show_DefaultResponse : System.Web.UI.UserControl
   {
      public bool htmlEncode { get; set; }
      // ----------------------------------

      public void Display( bool result )
      {
         Display( result.ToString() );
      }
      //
      public void Display( int result )
      {
         Display( result.ToString() );
      }
      //
      public void Display( string result )
      {
         this.Visible = true;

         if ( !string.IsNullOrEmpty( result ) )
            lblSimpleValue.Text = result;
         else
            lblSimpleValue.Text = "*** The response was EMPTY ***";
      }

   }
}